/* 
 * Since 2008 - 2012
 */
package com.hh.bss.auth.vo.query;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

import java.util.*;

import com.hh.bss.auth.dao.*;
import com.hh.bss.auth.entity.*;
import com.hh.bss.auth.service.*;
import com.hh.bss.auth.vo.query.*;
import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.util.*;





public class SystemRoleDataControlQuery extends BaseQuery implements Serializable {
    private static final long serialVersionUID = 3148176768559230877L;
    

	/** id */
	private java.lang.Integer id;
	/** 角色id */
	private java.lang.Integer roleId;
	/** 功能编码 */
	private java.lang.String functionCode;
	/** 组数据读 */
	private java.lang.Integer gr;
	/** 组数据修改 */
	private java.lang.Integer gu;
	/** 组数据删除 */
	private java.lang.Integer gd;
	/** 区域数据读 */
	private java.lang.Integer ar;
	/** 区域数据修改 */
	private java.lang.Integer au;
	/** 区域数据删除 */
	private java.lang.Integer ad;
	/** 公司数据读 */
	private java.lang.Integer cr;
	/** 公司数据修改 */
	private java.lang.Integer cu;
	/** 公司数据删除 */
	private java.lang.Integer cd;
	/** 创建时间 */
	private java.util.Date createDtBegin;
	private java.util.Date createDtEnd;

	public java.lang.Integer getId() {
		return this.id;
	}
	
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getRoleId() {
		return this.roleId;
	}
	
	public void setRoleId(java.lang.Integer value) {
		this.roleId = value;
	}
	
	public java.lang.String getFunctionCode() {
		return this.functionCode;
	}
	
	public void setFunctionCode(java.lang.String value) {
		this.functionCode = value;
	}
	
	public java.lang.Integer getGr() {
		return this.gr;
	}
	
	public void setGr(java.lang.Integer value) {
		this.gr = value;
	}
	
	public java.lang.Integer getGu() {
		return this.gu;
	}
	
	public void setGu(java.lang.Integer value) {
		this.gu = value;
	}
	
	public java.lang.Integer getGd() {
		return this.gd;
	}
	
	public void setGd(java.lang.Integer value) {
		this.gd = value;
	}
	
	public java.lang.Integer getAr() {
		return this.ar;
	}
	
	public void setAr(java.lang.Integer value) {
		this.ar = value;
	}
	
	public java.lang.Integer getAu() {
		return this.au;
	}
	
	public void setAu(java.lang.Integer value) {
		this.au = value;
	}
	
	public java.lang.Integer getAd() {
		return this.ad;
	}
	
	public void setAd(java.lang.Integer value) {
		this.ad = value;
	}
	
	public java.lang.Integer getCr() {
		return this.cr;
	}
	
	public void setCr(java.lang.Integer value) {
		this.cr = value;
	}
	
	public java.lang.Integer getCu() {
		return this.cu;
	}
	
	public void setCu(java.lang.Integer value) {
		this.cu = value;
	}
	
	public java.lang.Integer getCd() {
		return this.cd;
	}
	
	public void setCd(java.lang.Integer value) {
		this.cd = value;
	}
	
	public java.util.Date getCreateDtBegin() {
		return this.createDtBegin;
	}
	
	public void setCreateDtBegin(java.util.Date value) {
		this.createDtBegin = value;
	}	
	
	public java.util.Date getCreateDtEnd() {
		return this.createDtEnd;
	}
	
	public void setCreateDtEnd(java.util.Date value) {
		this.createDtEnd = value;
	}
	
	private String field_type;
	private String query;

	public String getField_type() {
		return field_type;
	}

	public void setField_type(String file_type) {
		this.field_type = file_type;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
        private String sort;
	private String dir;

        public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		
		this.sort = sort;
		if (!StringHelper.isEmpty(sort)&&!StringHelper.isEmpty(dir))
		  this.setSortColumns(sort+" "+dir);
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
	
}

